// double x = 2.25;
// double y = 0.0;
// double more = 0.0;
// double root = 0.0;
// less = floor(x);
// more = ceil(x);
// root = sqrt(x);

// double angle = 45.0;
// double pi = 3.1459265;
// double sine = 0.0;
// double cosine =0.0;
// sine = sin(pi*angle/180.0);
// cosine = sin(pi*angle/180.0);

//Program 2.17 Calculating the height of a tree
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    long shorty = 0L;
    long lofty = 0L;
    long feet = 0L;
    long inches = 0L;
    long shorty_to_lofty = 0L;
    long lofty_to_tree =0L;
    const long inches_per_foot = 12L;
    //Get Lofty's height
    printf("Enter Lofty's height to the top of his/her head,in whole feet:");
    scanf("ld",&feet);
    printf("         ...and then inches:");
    scanf("id",&inches);
    lofty = feet*inches_per_foot + inches;
    //Get Shory's height yp to his/her eyes
    printf("Enter Shory's height up to his/here eyes,in whole feet:");
    scanf("%ld",feet);
    printf("        ...and then inches:");
    scanf("%;d",&inches);
    shorty_to_lofty =feet*inches_per_foot +inches;

    //Get shorty's height up to his /her eyes
    printf("Enter Shorty's height yp to his/her eyes,in whole feet:");
    scanf("%ld",feet);
    printf("                           ... and then inches:");
    scanf("%ld",&inches);
    shorty = feet*inches_per_foot +inches;
    
    //Get the distance from Shorty to Lofty
    printf("Entere the distance between Shorty and Lorty,in whole feet ");
    scanf("%ld",&feet);
    lofty_to_tree =feet*inches_per_foot;
    
    //The code to calculate the height of the tree will go here

    //The code to display te result will go here

    return 0;
    
  
} 
